﻿<Window x:Class="InseSoft.Views.EmpresaWindow"        
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:controls="clr-namespace:InseSoft.Views.Controls"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:viewModels="clr-namespace:InseSoft.ViewModels"
        mc:Ignorable="d"
        Width="680" 
        Height="340"
        ResizeMode="NoResize"
        Title="Mantenimiento de Empresas"
        WindowStartupLocation="CenterScreen"
        Icon="/Images/Mantenimiento.ico"
    >
    <Grid d:DataContext="{d:DesignInstance {x:Type viewModels:BaseCatalogEntityViewModel}}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="225" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <controls:Toolbar Grid.ColumnSpan="2" />
        <controls:CatalogSearch Grid.Row="1" Margin="6,6,3,6" DataContext="{Binding CatalogSearchViewModel}"/>

        <TabControl Grid.Column="1" Grid.Row="1" Margin="6" IsEnabled="{Binding IsItemSelected}">
            <TabItem Header="Empresa" IsSelected="True" >
                <controls:EmpresaEdit Margin="3,6,6,6"  DataContext="{Binding CurrentEntity}"/>
            </TabItem>
            <TabItem Header=" Costos " >
                <controls:CostosEdit Margin="3,6,6,6" DataContext="{Binding CurrentEntity}"/>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
